import request from '@/utils/request.js';

// 登录
export const oaLogin = (params) => {
	return request({
		method: 'POST',
		url: '/login/oaLogin',
		data: params
	});
}

// banner列表
export const getBannerListApi = (params) => {
	return request({
		method: 'GET',
		url: '/banner/list',
		data: params
	});
}
// 酒店列表
export const getHotelListApi = (params) => {
	return request({
		method: 'GET',
		url: '/hotel/list',
		data: params
	});
}
// 酒店详情
export const getHotelDetailApi = (params) => {
	return request({
		method: 'GET',
		url: '/hotel/detail',
		data: params
	});
}
// 酒店获取房间价格
export const getRoomPrice = (params) => {
	return request({
		method: 'GET',
		url: '/shop/getRoomPrice',
		data: params
	});
}
// 创建订单
export const orderCreate = (params) => {
	return request({
		method: 'POST',
		url: '/order/create',
		data: params
	});
}
// 获取订单列表
export const getOrderList = (params) => {
	return request({
		method: 'GET',
		url: '/order/list',
		data: params
	});
}
// 获取订单详情
export const getOrderDetail = (params) => {
	return request({
		method: 'GET',
		url: '/order/Detail',
		data: params
	});
}

// 取消订单
export const orderCancel = (params) => {
	return request({
		method: 'POST',
		url: '/order/cancel',
		data: params
	});
}

// 订单退款
export const payRefund = (params) => {
	return request({
		method: 'POST',
		url: '/pay/refund',
		data: params
	});
}

// 支付订单
export const payLKLPay = (params) => {
	return request({
		method: 'POST',
		url: '/pay/LKLPay',
		data: params
	});
}

// config参数
export const jsConfig = (params) => {
	return request({
		method: 'GET',
		url: '/wechat/jsConfig',
		data: params
	});
}

// 获取服务列表
export const getHotelBasic_list = (params) => {
	return request({
		method: 'GET',
		url: '/hotel/basic_list',
		data: params
	});
}


// 判断是否有押金
export const boolonOrderCheck = (params) => {
	return request({
		method: 'GET',
		url: '/order/check',
		data: params
	});
}


// 获取房间价格
export const get_price = (params) => {
	return request({
		method: 'GET',
		url: '/hotel/get_price',
		data: params
	});
}



// 创建押金订单
export const deposit_orderCreate = (params) => {
	return request({
		method: 'POST',
		url: '/deposit_order/create',
		data: params
	});
}

// 取消押金支付
export const deposit_orderCancel = (params) => {
	return request({
		method: 'POST',
		url: '/deposit_order/cancel',
		data: params
	});
}

// 押金支付
export const payDeposit = (params) => {
	return request({
		method: 'POST',
		url: '/pay/deposit',
		data: params
	});
}

// 押金退款
export const payRefund_deposit = (params) => {
	return request({
		method: 'POST',
		url: '/pay/refund_deposit',
		data: params
	});
}

// 押金列表
export const deposit_orderList = (params) => {
	return request({
		method: 'GET',
		url: '/deposit_order/list',
		data: params
	});
}


// 押金详情
export const deposit_orderDetail = (params) => {
	return request({
		method: 'GET',
		url: '/deposit_order/detail',
		data: params
	});
}

// 获取用户信息
export const userInfoApi = (params) => {
	return request({
		method: 'GET',
		url: '/user/info',
		data: params
	});
}
